import O1HD, { modules } from "../../engines/gameEngine";
import { REWARD_TYPE } from "../../engines/services/userContent/userInterface";
import PageBase from "../Base/PageBase";

const {ccclass, property} = cc._decorator;

@ccclass
export default class ExtraAdPage extends PageBase {

    onBtnComit(){
        O1HD.getServices().userSrv.setCoins(1,true); 
        modules().uiControlModule.showGetRewarded(REWARD_TYPE.COIN, 2);
        O1HD.getServices().userSrv.setExtraAd(1);
        this.ClosePage();
    }

}
